package com.photoeditor.demo.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;

@Entity
public class MagazineBean implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(autoincrement = true)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * （1、内置 ，  2、more ， 3、下载）
     */
    private int type;

    /**
     * 是否解锁：
     * 1已解锁
     * 0还没解锁
     */
    private boolean unLock;

    /**
     * 杂志颜色
     */
    private String color;

    /**
     * 内置杂志删除后，变成不可用，下载杂志删除后，直接从sqlite删除
     * （状态：1、可用，  2、不可用）
     */
    private int status;

    /**
     * Local排序，上下拖动使用
     */
    private int localIndex;

    /**
     * （内置、more使用名称，下载保存url地址）
     */
    private String imageUrl;

    /**
     * 包名
     */
    private String packageName;

    /**
     * 下载地址
     */
    private String downloadUrl;

    /**
     * 安装包大小
     */
    private String size;

    /**
     * apk下载到本地sdcard地址
     */
    private String apkUrl;

    private String moduleId;

    private String story;

    private String icon;

    private String preview;//浏览图，#分割

    private String lastupdate;

    private int versionCode = 1;

    private String author;

    private String authorUrl;

    /**
     * 支持拼图数量
     */
    private int srcImageNum;

    private boolean supportVideo;

    public MagazineBean(String name, int type, boolean unLock,
                        int status, int localIndex, String packageName,
                        String apkUrl, String icon, int srcImageNum, boolean supportVideo) {
        this.name = name;
        this.type = type;
        this.unLock = unLock;
        this.status = status;
        this.localIndex = localIndex;
        this.packageName = packageName;
        this.apkUrl = apkUrl;
        this.icon = icon;
        this.srcImageNum = srcImageNum;
        this.supportVideo = supportVideo;
    }

    @Generated(hash = 1812013474)
    public MagazineBean(Long id, String name, int type, boolean unLock, String color,
            int status, int localIndex, String imageUrl, String packageName,
            String downloadUrl, String size, String apkUrl, String moduleId, String story,
            String icon, String preview, String lastupdate, int versionCode, String author,
            String authorUrl, int srcImageNum, boolean supportVideo) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.unLock = unLock;
        this.color = color;
        this.status = status;
        this.localIndex = localIndex;
        this.imageUrl = imageUrl;
        this.packageName = packageName;
        this.downloadUrl = downloadUrl;
        this.size = size;
        this.apkUrl = apkUrl;
        this.moduleId = moduleId;
        this.story = story;
        this.icon = icon;
        this.preview = preview;
        this.lastupdate = lastupdate;
        this.versionCode = versionCode;
        this.author = author;
        this.authorUrl = authorUrl;
        this.srcImageNum = srcImageNum;
        this.supportVideo = supportVideo;
    }

    @Generated(hash = 919441347)
    public MagazineBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean getUnLock() {
        return this.unLock;
    }

    public void setUnLock(boolean unLock) {
        this.unLock = unLock;
    }

    public String getColor() {
        return this.color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getLocalIndex() {
        return this.localIndex;
    }

    public void setLocalIndex(int localIndex) {
        this.localIndex = localIndex;
    }

    public String getImageUrl() {
        return this.imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getPackageName() {
        return this.packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getDownloadUrl() {
        return this.downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getSize() {
        return this.size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getApkUrl() {
        return this.apkUrl;
    }

    public void setApkUrl(String apkUrl) {
        this.apkUrl = apkUrl;
    }

    public String getModuleId() {
        return this.moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    public String getStory() {
        return this.story;
    }

    public void setStory(String story) {
        this.story = story;
    }

    public String getIcon() {
        return this.icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPreview() {
        return this.preview;
    }

    public void setPreview(String preview) {
        this.preview = preview;
    }

    public String getLastupdate() {
        return this.lastupdate;
    }

    public void setLastupdate(String lastupdate) {
        this.lastupdate = lastupdate;
    }

    public int getVersionCode() {
        return this.versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthorUrl() {
        return this.authorUrl;
    }

    public void setAuthorUrl(String authorUrl) {
        this.authorUrl = authorUrl;
    }

    public int getSrcImageNum() {
        return this.srcImageNum;
    }

    public void setSrcImageNum(int srcImageNum) {
        this.srcImageNum = srcImageNum;
    }

    public boolean getSupportVideo() {
        return this.supportVideo;
    }

    public void setSupportVideo(boolean supportVideo) {
        this.supportVideo = supportVideo;
    }

}
